﻿namespace VividKit.ServiceModel
{
	using System;

	public static class ServiceExtensions
	{
		public static T GetService<T>(this IServiceProvider serviceProvider) where T : class
		{
			return serviceProvider.GetService(typeof(T)) as T;
		}
	}
}